<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body>
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_hp_01')?></cite></a>
        <a href="javascript:;"><?=L('tpl_hp_02')?></a>
        <a href="<?=site_url('homes/pay')?>"><?=L('tpl_hp_03')?></a>
    </span>
    <form class="layui-form layui-form-so" action="<?=site_url('homes/pay')?>" method="post">
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <select name="zd">
                    <option value="name" <?php if($zd=='name') echo ' selected';?>><?=L('tpl_hp_04')?></option>
                    <option value="id" <?php if($zd=='id') echo ' selected';?>><?=L('tpl_hp_05')?></option>
                </select>
            </div>
            <div class="layui-input-inline">
                <input type="text" name="key" value="<?=$key?>" class="layui-input">
            </div>
             <div class="layui-input-inline">
                <button class="layui-btn" type="submit"><?=L('tpl_hp_06')?></button>
            </div>
        </div>
    </form>
    <form class="layui-form" action="<?=site_url('homes/del')?>" method="post">
        <table class="layui-table">
            <thead>
                <tr>
                    <th><?=L('tpl_hp_07')?></th>
                    <th><?=L('tpl_hp_08')?></th>
                    <th><?=L('tpl_hp_09')?></th>
                    <th><?=L('tpl_hp_10')?></th>
                    <th class="phide"><?=L('tpl_hp_11')?></th>
                    <th class="phide"><?=L('tpl_hp_12')?></th>
                </tr>
            </thead>
            <tbody>
            <?php
            if(empty($pay)) echo '<tr><td align="center" height="50" colspan="6">'.L('tpl_hp_13').'</td></tr>';
            foreach ($pay as $row) {
                //会员
                $rowa=$this->db->query("SELECT name FROM ".CS_SqlPrefix."user where id=".$row->uid."")->row();
                $uname=($rowa)?$rowa->name:L('tpl_hp_14').$row->uid;

                echo '
                <tr id="row_'.$row->id.'">
                <td><input name="id['.$row->id.']" class="xuan" type="checkbox" value="'.$row->id.'" /></td>
                <td>'.$row->name.'</td> 
                <td><a href="'.site_url('homes/pay').'?zd=id&key='.$row->uid.'">'.$uname.'</a></td>
                <td>'.$row->cion.'</td>
                <td class="phide">'.date('Y-m-d H:i:s',$row->addtime).'</td>
                <td class="phide"><a href="javascript:cscms.del_one(\''.site_url('homes/del').'\','.$row->id.');">'.L('tpl_hp_15').'</a></td>
                </tr> ';
            }
            ?>
            </tbody>
        </table>
        <div class="more_func">
            <a class="layui-btn layui-btn-primary layui-btn-small" href="javascript:cscms.select_all();"><i class="fa fa-check colorl" ></i><?=L('tpl_hp_16')?></a>
            <a class="layui-btn layui-btn-primary layui-btn-small" lay-submit lay-filter="del_pl"><i class="fa fa-close " style="color: red" ></i><?=L('tpl_hp_17')?></a>
        </div>
    </form>
    <div id="page">
        <div class="data_nums phide"><?=$page_data?></div>
        <div class="data_page"><?=$page_list?></div>
    </div>
    <script type="text/javascript">
        cscms.init();
    </script>
</body>
</html>